import service from './http'
export function getRight(){
  return service({
    url:'rights/list',
    method:'get',
  })
}
export function getRoles(){
  return service({
    url:'roles',
    method:'get'
  })
}
export function deleteRoles(roled,rightId){
  return service({
    url:`roles/${roled}/right/${rightId}`,
    method:'delete'
  })
}